﻿using Microsoft.AspNet.SignalR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace huaxin_luckdraw.Hubs
{
    public class Notifier
    {
        private static readonly IHubContext Context = GlobalHost.ConnectionManager.GetHubContext<OrderHub>();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="connectionId"></param>
        /// <param name="orderNo"></param>
        public static void getOrderNoHandle(string connectionId, string orderNo)
        {

            var jsonObj = OrderHubHelp.GetOrderResult(orderNo);
            Context.Clients.Client(connectionId).sendOrderNoResult(jsonObj);

        }
    }
}